package au.com.handsunited.model.skill;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import au.com.handsunited.model.MotherOfAllEntities;


/**
 * @author arunda
 *
 */
public class Skill extends MotherOfAllEntities implements Comparable<Skill> {

	private String name;

	private String description;


	private static Logger logger = LoggerFactory.getLogger(Skill.class);

	/**
	 *
	 */
	public Skill() {
		super();
	}

	/**
	 * @param name
	 * @param description
	 */
	public Skill(String name, String description) {
		this();
		this.name = name;
		this.description = description;
	}



	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {

		return super.equals(obj);
	}

	/**
	 * @see java.lang.Comparable#compareTo(java.lang.Object)
	 */
	@Override
	public int compareTo(Skill skill) {
		return name.compareToIgnoreCase(skill.getName());
	}


}
